package com.abchina.demo.endpoints;
import com.aol.micro.server.auto.discovery.Rest;

import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.container.Suspended;

/**
 * Created by 陈睿 on 2015/12/31.
 */
@Rest
@Path("/hello")
public class Demo {
    @GET
    @Path("/{who}")
    public String print(@PathParam("who") String id){
        return "hello "+id;
    }
    @POST
    @Path("/post")
    public String post(String msg) {
        return msg;
    }
}
